<template>
  <div>
    <div style="padding: 20px">
      <el-card>
        <el-form label-width="80px">
          <el-form-item label="作者名称">
            <el-input v-model="authorName" placeholder="请输入用户的名称" style="width: 300px"></el-input>
            <el-button type="primary" icon="el-icon-search" style="margin: 0 20px">查询</el-button>
            <el-button>重置</el-button>
          </el-form-item>
        </el-form>
        <div>
          <el-table
              border
              :data="tableData"
              style="width: 100% ">
            <el-table-column type="selection"/>
            <el-table-column
                prop="date"
                label="日期"
                width="180">
            </el-table-column>
            <el-table-column
                prop="name"
                label="姓名"
                width="180">
            </el-table-column>
            <el-table-column
                prop="address"
                label="地址">
            </el-table-column>
          </el-table>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script>
export default {
  name: "UserManagement",
  data() {
    return {
      authorName: '',
      tableData: [{
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-04',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1517 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1519 弄'
      }, {
        date: '2016-05-03',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1516 弄'
      }],
      multipleSelection: ''
    }
  },
  methods: {
    handleSelectionChange(val) {
      this.multipleSelection = val;
    }
  }

}
</script>

<style scoped>

</style>